<template>
	<view style="width: 100vw;height: 100%;">
		<view style="display: flex;align-items: center;justify-content: center;flex-direction: column;margin-top: 20px;">
			<image @click="konwcode" :src='qr' style="background:#fff;width:300px;height:300px" />
			<view>
				长按大图打开小程序
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				qr:'',
				videoContext:''
			}
		},
		onLoad(options) {
			var that = this
			var dbname = uni.getStorageSync('dbId')
			var projectCode = uni.getStorageSync('projectCode')
			if(projectCode=='SRM'){
				that.qr='https://www.a-shen.net/images/mxdz/gys.jpg'
			}else if(projectCode=='ERP'){
				that.qr='https://www.a-shen.net/images/mxdz/glxt.jpg'
			}
		},
		methods: {
			konwcode(){
				var url = [this.qr]
				uni.previewImage({
					urls:url,
					current:0
				})
			}
		}
	}
</script>
